<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>部门列表</title>
</head>
<body>
<a href="input.do">新增</a>
<table width="800px" cellpadding="0" cellspacing="0" align="center" border="1px">
    <tr>
        <td>ID</td>
        <td>名称</td>
        <td>缩写</td>
        <td>操作</td>
    </tr>

    <c:forEach items="${departments}" var="department">
        <tr>
            <td>${department.id}</td>
            <td>${department.name}</td>
            <td>${department.sn}</td>
            <td>
                <a href="delete.do?id=${department.id}">删除</a>
                <a href="input.do?id=${department.id}">修改</a>
            </td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
